//
//  BaseViewController.h
//  dangdang
//
//  Created by air on 15/12/9.
//  Copyright © 2015年 luweijie. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AFNetworking.h"
#import "QMSSGlobal.h"
#import "LoadingView.h"
#import "AppDelegate.h"

@interface BaseViewController : UIViewController<UITextFieldDelegate,UITextViewDelegate>

/**
 输出警告信息
 */
-(void)alertViewShowWithAlertString:(NSString *)alertString;

/**
 向后台发送Post请求，sender可选为触发该请求的控件
 */
-(void)postRequestWithMethodName:(NSString *)methodName andParams:(NSDictionary *)params andSender:(id)sender;

/**
 *返回数据成功
 */
- (void)requestSuccessedWithResult:(id)result NSURLSessionTask:(NSURLSessionTask *)task sender:(id)sender;

- (void)requestFailureWithNSURLSessionTask:(NSURLSessionTask *)task error:(NSError *)error sender:(id)sender;

@end
